home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Tools / Experimental / InstallTalk 1.0d1c1 / Fat Example w⁄InstallTalk / fat easy < prev    next >
Encoding:
Text File  |  1996-03-25  |  904 b   |  21 lines  |  [TEXT/MPS ]

  1.  
  2. (* Install fat app if both types of code are already present, or if were running on a Mac
  3. that doesn't already have the code for that type of Mac, or if on an external volume *)
  4. if (sixtyEightKCodeIsPresent and powerPCCodeIsPresent) or (sixtyEightKCodeIsPresent and machineHasPowerPC) or (powerPCCodeIsPresent and not machineHasPowerPC) or externalVolSelected then
  5.     AddUserDescription( kEasyMsgForAnyMac )
  6.     AddPackages( kUpdateFullFatAppPkg )
  7.  
  8. (* otherwise, install for the Mac type on which we are running. *)
  9. else if not machineHasPowerPC then
  10.     AddUserDescription( kEasyMsgFor68KMac )
  11.     AddPackages( kOverWrite68KAppPkg )
  12. else if machineHasPowerPC then
  13.     AddUserDescription( kEasyMsgForPPCMac )
  14.     AddPackages( kUpdatePowerMacAppPkg )
  15.  
  16. (* if it's not a 68K or PPC Mac, then raise an error because we don't know what it is. *)
  17. else 
  18.     StopWithSystemError( kSysErrorMsgUnknownMac )
  19. end
  20.  
  21.